package com.xpec.c4.game.utility.dbtool;

import java.util.LinkedHashMap;

public class AlterCommandInfo {
	
	public AlterCommandInfo(String tableName){
		this.tableName = tableName;
	}
	
	public String tableName;
	
	public String createTableCommand;

	public LinkedHashMap<String, AlterColumnInfo> alterColumns = new LinkedHashMap<String, AlterColumnInfo>();

	public LinkedHashMap<String, AlterIndexInfo> alterIndexs = new LinkedHashMap<String, AlterIndexInfo>();
	
	public boolean isCreateTable(){
		if (createTableCommand == null) {
			return false;
		}

		return true;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getCreateTableCommand() {
		return createTableCommand;
	}

	public void setCreateTableCommand(String createTableCommand) {
		this.createTableCommand = createTableCommand;
	}

	public LinkedHashMap<String, AlterColumnInfo> getAlterColumns() {
		return alterColumns;
	}

	public void setAlterFields(LinkedHashMap<String, AlterColumnInfo> alterColumns) {
		this.alterColumns = alterColumns;
	}

	public LinkedHashMap<String, AlterIndexInfo> getAlterIndexs() {
		return alterIndexs;
	}

	public void setAlterIndexs(LinkedHashMap<String, AlterIndexInfo> alterIndexs) {
		this.alterIndexs = alterIndexs;
	}
}
